package main

import (
	"ProfessionalCourse5Work/bigsweet/big-sweet-potato-mgr/cache"
	"ProfessionalCourse5Work/bigsweet/big-sweet-potato-mgr/config"
	"ProfessionalCourse5Work/bigsweet/big-sweet-potato-mgr/models"
	"ProfessionalCourse5Work/bigsweet/big-sweet-potato-mgr/router"
)

func main() {
	//调节配置文件
	config.Init()
	//连接数据表
	models.Init()
	//连接redis
	cache.Init()
	r := router.Router()
	r.Run(":8000")
}
